import WinURL from "../../main/class/WinURL.class";

class MenuUtil {
    constructor() {
    }

    static activeMenu(url, index){
        let strings = url.split('/');
        if(index){
            return strings[strings.length - index];
        }
        return strings.pop();
    }
}

export default MenuUtil;